
<!DOCTYPE HTML>
<html lang="">
<head>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>文档目录 · IUPAY</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="">
<meta name="generator" content="GitBook 3.2.3">
<link href="https://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet"><link rel="stylesheet" href="../gitbook/style.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="sign.html" />
<link rel="prev" href="close.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1">
<a target="_blank" href="https://pay.iuact.com">
返回首页
</a>
</li>
<li class="chapter " data-level="1.2" data-path="../questions/about.html">
<a href="../questions/about.html">
关于IUPAY
</a>
</li>
<li class="chapter " data-level="1.3" data-path="../">
<a href="../index.html">
文档目录
</a>
</li>
<li class="chapter " data-level="1.4" data-path="../questions/">
<a href="../questions/index.html">
综合问题
</a>
<ul class="articles">
<li class="chapter " data-level="1.4.1" data-path="../questions/account.html">
<a href="../questions/account.html">
账户使用
</a>
</li>
<li class="chapter " data-level="1.4.2" data-path="../questions/settleaccount.html">
<a href="../questions/settleaccount.html">
资金结算
</a>
</li>
<li class="chapter " data-level="1.4.3" data-path="../questions/rate.html">
<a href="../questions/rate.html">
费用费率
</a>
</li>
<li class="chapter " data-level="1.4.4" data-path="../questions/agreement.html">
<a href="../questions/agreement.html">
用户协议
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.5" data-path="../wechat_xiaowei/">
<a href="../wechat_xiaowei/index.html">
微信支付小微商户
</a>
<ul class="articles">
<li class="chapter " data-level="1.5.1" data-path="../wechat_xiaowei/intro.html">
<a href="../wechat_xiaowei/intro.html">
产品介绍
</a>
</li>
<li class="chapter " data-level="1.5.2" data-path="../wechat_xiaowei/native.html">
<a href="../wechat_xiaowei/native.html">
Native支付（扫码支付）
</a>
</li>
<li class="chapter " data-level="1.5.3" data-path="../wechat_xiaowei/qrpay.html">
<a href="../wechat_xiaowei/qrpay.html">
付款码支付（用户被扫）
</a>
</li>
<li class="chapter " data-level="1.5.4" data-path="../wechat_xiaowei/openid.html">
<a href="../wechat_xiaowei/openid.html">
获取OPENID
</a>
</li>
<li class="chapter " data-level="1.5.5" data-path="../wechat_xiaowei/jsapi.html">
<a href="../wechat_xiaowei/jsapi.html">
JSAPI支付（公众号支付）
</a>
</li>
<li class="chapter " data-level="1.5.6" data-path="../wechat_xiaowei/miniapp.html">
<a href="../wechat_xiaowei/miniapp.html">
小程序支付
</a>
</li>
<li class="chapter " data-level="1.5.7" data-path="../wechat_xiaowei/query.html">
<a href="../wechat_xiaowei/query.html">
交易订单查询
</a>
</li>
<li class="chapter " data-level="1.5.8" data-path="../wechat_xiaowei/cancle.html">
<a href="../wechat_xiaowei/cancle.html">
关闭订单
</a>
</li>
<li class="chapter " data-level="1.5.9" data-path="../wechat_xiaowei/refund.html">
<a href="../wechat_xiaowei/refund.html">
交易退款
</a>
</li>
<li class="chapter " data-level="1.5.10" data-path="../wechat_xiaowei/notify.html">
<a href="../wechat_xiaowei/notify.html">
异步通知
</a>
</li>
<li class="chapter " data-level="1.5.11" data-path="../wechat_xiaowei/sign.html">
<a href="../wechat_xiaowei/sign.html">
签名规则
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.6" data-path="./">
<a href="index.html">
支付宝当面付
</a>
<ul class="articles">
<li class="chapter " data-level="1.6.1" data-path="intro.html">
<a href="intro.html">
产品介绍
</a>
</li>
<li class="chapter " data-level="1.6.2" data-path="query_auth.html">
<a href="query_auth.html">
授权查询
</a>
</li>
<li class="chapter " data-level="1.6.3" data-path="pay.html">
<a href="pay.html">
条码支付(用户被扫)
</a>
</li>
<li class="chapter " data-level="1.6.4" data-path="precreate.html">
<a href="precreate.html">
扫码支付(商家被扫)
</a>
</li>
<li class="chapter " data-level="1.6.5" data-path="refund.html">
<a href="refund.html">
交易退款
</a>
</li>
<li class="chapter " data-level="1.6.6" data-path="query.html">
<a href="query.html">
交易订单查询
</a>
</li>
<li class="chapter " data-level="1.6.7" data-path="cancel.html">
<a href="cancel.html">
取消订单
</a>
</li>
<li class="chapter " data-level="1.6.8" data-path="close.html">
<a href="close.html">
关闭订单
</a>
</li>
<li class="chapter active" data-level="1.6.9" data-path="notify.html">
<a href="notify.html">
异步通知
</a>
</li>
<li class="chapter " data-level="1.6.10" data-path="sign.html">
<a href="sign.html">
签名规则
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.7" data-path="../sdk/">
<a href="../sdk/index.html">
IUPAYSDK
</a>
<ul class="articles">
<li class="chapter " data-level="1.7.1" data-path="../sdk/php.html">
<a href="../sdk/php.html">
PHP
</a>
</li>
<li class="chapter " data-level="1.7.2" data-path="../sdk/csharp.html">
<a href="../sdk/csharp.html">
C#
</a>
</li>
<li class="chapter " data-level="1.7.3" data-path="../sdk/java.html">
<a href="../sdk/java.html">
Java
</a>
</li>
<li class="chapter " data-level="1.7.4" data-path="../sdk/python.html">
<a href="../sdk/python.html">
python
</a>
</li>
<li class="chapter " data-level="1.7.5" data-path="../sdk/others.html">
<a href="../sdk/others.html">
其他语言SDK
</a>
</li>
</ul>
</li>

<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
                <h1>
                    <i class="fa fa-circle-o-notch fa-spin"></i>
                    <a href="../index.html">异步通知</a>
                </h1>
            </div>
            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                    <div id="book-search-results">
                        <div class="search-noresults">
                            <section class="normal markdown-section">
                                <h2 id="异步回调">异步回调</h2>
                                <blockquote>
                                    <p>在支付成功之后，IUPAY会根据用户指定的异步回调地址进行相应支付成功订单数据的回调处理。IUPAY会进行下面周期性的回调,直到中间回调的结果返回的状态码为200或者IUPAY设置的回调次数达到限制。注意，IUPAY可能会有多次回调。</p>
                                </blockquote>
                                <table>
                                    <thead>
                                    <tr>
                                        <th>周期</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td>支付成功后马上回调</td>
                                    </tr>
                                    <tr>
                                        <td>1分钟</td>
                                    </tr>
                                    <tr>
                                        <td>2分钟</td>
                                    </tr>
                                    <tr>
                                        <td>3分钟</td>
                                    </tr>
                                    <tr>
                                        <td>4分钟</td>
                                    </tr>
                                    <tr>
                                        <td>5分钟</td>
                                    </tr>
                                    <tr>
                                        <td>6分钟</td>
                                    </tr>
                                    <tr>
                                        <td>3个小时</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <h2 id="回调数据字段">回调数据字段</h2>
                                <table>
                                    <thead>
                                    <tr>
                                        <th>字段</th>
                                        <th>字段类型</th>
                                        <th>是否必填</th>
                                        <th>说明</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr>
                                        <td><code>sign</code></td>
                                        <td>string</td>
                                        <td>是</td>
                                        <td>签名，这里开发者需要根据IUPAY的签名规则在本地进行校验</td>
                                    </tr>
                                    <tr>
                                        <td><code>out_trade_no</code></td>
                                        <td>string</td>
                                        <td>是</td>
                                        <td>用户自定义订单号</td>
                                    </tr>
                                    <tr>
                                        <td><code>order_sn</code></td>
                                        <td>string</td>
                                        <td>是</td>
                                        <td>IUPAY平台订单号</td>
                                    </tr>
                                    <tr>
                                        <td><code>total_fee</code></td>
                                        <td>int</td>
                                        <td>是</td>
                                        <td>订单总额，单位：分</td>
                                    </tr>
                                    <tr>
                                        <td><code>status_text</code></td>
                                        <td>string</td>
                                        <td>是</td>
                                        <td>状态文本，固定： <code>PAID</code></td>
                                    </tr>
                                    <tr>
                                        <td><code>status</code></td>
                                        <td>int</td>
                                        <td>是</td>
                                        <td>状态数字，固定： <code>9</code></td>
                                    </tr>
                                    <tr>
                                        <td><code>attach</code></td>
                                        <td>string</td>
                                        <td>否</td>
                                        <td>用户下单是传递的附加参数</td>
                                    </tr>
                                    </tbody>
                                </table>
                                <blockquote>
                                    <p><strong>注意，IUPAY系统在回调中收到200响应时即认为回调成功。</strong></p>
                                </blockquote>
                            </section>
                        </div>
                        <div class="search-results">
                            <div class="has-results">
                                <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
                                <ul class="search-results-list"></ul>
                            </div>
                            <div class="no-results">
                                <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <a href="close.html" class="navigation navigation-prev " aria-label="Previous page: 关闭订单">
            <i class="fa fa-angle-left"></i>
        </a>
        <a href="sign.html" class="navigation navigation-next " aria-label="Next page: 签名规则">
            <i class="fa fa-angle-right"></i>
        </a>
    </div>
<script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"异步通知","level":"1.6.9","depth":2,"next":{"title":"签名规则","level":"1.6.10","depth":2,"path":"alipay_f2f/sign.md","ref":"alipay_f2f/sign.md","articles":[]},"previous":{"title":"关闭订单","level":"1.6.8","depth":2,"path":"alipay_f2f/close.md","ref":"alipay_f2f/close.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"alipay_f2f/notify.md","mtime":"2019-08-29T06:31:38.631Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-08-29T06:38:36.818Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>
<script src="../gitbook/gitbook.js"></script>
<script src="../gitbook/theme.js"></script>
<script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="../gitbook/gitbook-plugin-search/search.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<!--<script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>-->
<script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>
